import {Component, OnInit} from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router';
import {Services} from '../../../../frame/module/services';
import {SearchListInsMessagingComponent} from './search-list-ins-messaging/search-list-ins-messaging.component';
import {FuncListInsMessagingComponent} from './func-list-ins-messaging/func-list-ins-messaging.component';
import {TableListInsMessagingComponent} from './table-list-ins-messaging/table-list-ins-messaging.component';
import {Zero3LayoutNavbarComponent} from '../../../../frame/zero3-layout-navbar/zero3-layout-navbar.component';
import {Zero3LayoutMenuComponent} from '../../../../frame/zero3-layout-menu/zero3-layout-menu.component';

@Component({
    selector: 'app-list-ins-messaging',
    templateUrl: './list-ins-messaging.component.html',
    styleUrls: ['./list-ins-messaging.component.css']
})
export class ListInsMessagingComponent implements OnInit {

    nav: {
        upper: ListInsMessagingComponent,
        self: Zero3LayoutNavbarComponent,
    } = {
        upper: this,
        self: null,
    };

    menu: {
        upper: ListInsMessagingComponent,
        self: Zero3LayoutMenuComponent,
    } = {
        upper: this,
        self: null,
    };

    search: SearchListInsMessagingComponent = null;

    func: FuncListInsMessagingComponent = null;

    table: TableListInsMessagingComponent = null;

    funcName = '列表';

    module = {
        id: null,
        menu: {
            id: null,
        }
    };

    constructor(public router: Router, public route: ActivatedRoute, public services: Services) {
    }

    ngOnInit() {
        this.func.list.click(null);
        this.module.id = this.route.snapshot.paramMap.get('moduleId');
        this.module.menu.id = this.route.snapshot.paramMap.get('menuId');
    }

}
